package com.cgsrp.cgsrp_baby.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.cgsrp.cgsrp_baby.domain.GrowthRecord;
import com.cgsrp.cgsrp_baby.dao.GrowthRecordMapper;
import com.cgsrp.cgsrp_baby.service.GrowthRecordService;

import java.util.List;

@Service
public class GrowthRecordServiceImpl implements GrowthRecordService{

    @Resource
    private GrowthRecordMapper growthRecordMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return growthRecordMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(GrowthRecord record) {
        return growthRecordMapper.insert(record);
    }

    @Override
    public int insertSelective(GrowthRecord record) {
        return growthRecordMapper.insertSelective(record);
    }

    @Override
    public GrowthRecord selectByPrimaryKey(Integer id) {
        return growthRecordMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(GrowthRecord record) {
        return growthRecordMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(GrowthRecord record) {
        return growthRecordMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<GrowthRecord> list(int id) {
        return growthRecordMapper.list(id);
    }

}
